const map = {
  lian: () => import('./Operates/RegisterCase'), // 立案
  anjianwenshu: () => import('./Operates/CaseDocument'), // 案件文书
  zuting: () => import('./Operates/FormCourt'), // 组庭
  yuyuetingshi: () => import('./Operates/BookRoom'), // 预约庭室
  jiaofei: () => import('./Operates/PayFee'), // 交费
  shouan: () => import('./Operates/AcceptCase'), // 收案
  yijiaosongda: () => import('./Operates/ToSendSecretary'), // 移交送达
  yijiaobanan: () => import('./Operates/ToBusinessSecretary'), // 移交办案
  buyushouli: () => import('./Operates/UnAccept'), // 不予受理
  jiean: () => import('./Operates/CloseCase'), // 结案
  guidang: () => import('./Operates/FileCase'), // 归档
  dangandiaoqu: () => import('./Operates/TransferTheFiles'), // 调档
  songda: () => import('./Operates/Service/Index'), // 送达
  songdadizhi: () => import('./Operates/ServiceAddress'), // 送达地址
  jinjimishu: () => import('./Operates/EmergencyProcesser'), // 紧急秘书
  baoquan: () => import('./Operates/Preservation'), // 保全
  jianmian: () => import('./Operates/Reduction'), // 减免
  anjianwenshuno: () => import('./Operates/DocumentApprove'), // 文书流水号呈批
  qingqiubiangeng: () => import('./Operates/RequestChange'), // 请求变更
  fanqingqiu: () => import('./Operates/AntiRequest'), // 反请求
  fanqingqiubiangeng: () => import('./Operates/AntiRequestChange'), // 反请求变更
  zanhuan: () => import('./Operates/Postpone'), // 暂缓
  zhongzhi: () => import('./Operates/Suspension'), // 中止恢复
  processer_reassign: () => import('./Operates/ReSelectSecretary'), // 重新指定秘书
  tuichuhuibi: () => import('./Operates/Avoid/Index'), // 退出回避
  yanchangshenxian: () => import('./Operates/ExtendTime/Index'), // 延长审限
  zhengjuliebiao: () => import('./Operates/Evidences/Index'), // 证据列表
  dianzisongdadizhi: () => import('./Operates/ElectronicAddress/Index'), // 电子地址
  jiaofeimingxi: () => import('./Operates/PayFeeDetail/Index'), // 交费明细
  zcybaochou: () => import('./Operates/ArbitratorPay/Index'), // 仲裁员报酬
  jieantuifei: () => import('./Operates/CloseFee/Index'), // 结案退费
  dabian: () => import('./Operates/Defence/Index'), // 答辩
  arbitrator_jiean: () => import('./Operates/ArbitratorClosureDoc/Index'), // 仲裁员结案文书
  bilu: () => import('./Operates/ArbitratorRecordDoc/Index'), // 仲裁员庭审笔录
  chengxubiangeng: () => import('./Operates/ProcedureChange/Index') // 程序变更
}

const Approve = () => import('@components/Approve/ApprovePane')

export function getOperateComponent (data, caseid) {
  const { key, flow_key: flowKey } = data
  const specialList = ['zuting', 'qingqiubiangeng', 'fanqingqiu', 'fanqingqiubiangeng', 'jianmian', 'tuichuhuibi', 'yanchangshenxian', 'zhongzhi', 'zcybaochou', 'processer_reassign', 'chengxubiangeng']
  if (flowKey && !specialList.includes(flowKey)) {
    return Approve
  }
  return map[key]
}

export default map
